<?php
/**
 * Created by PhpStorm.
 * User: geyouwen
 * Date: 17/2/7
 * Time: 上午11:30
 */

namespace App\Jobs\Demo;


use App\Jobs\Job;
use App\Model\Bll\ArticleCateBll;
use Illuminate\Support\Facades\Redis;

class Demo extends Job
{

    private $article_cate;
    public function __construct(ArticleCateBll $articleCateBll)
    {
        $this->article_cate = $articleCateBll;
    }

    public function handle()
    {
//        $list = $this->article_cate->getAll();
//        foreach($list as $key => $val)
//        {
//            echo $val->userid;
//        }
        $redis = Redis::connection('share_3');
        echo $redis->lpop('MQ');
        exit;
    }

}